home *** CD-ROM | disk | FTP | other *** search
/ Mac Format 1997 January / macformat46.iso / File Maker Pro 3.0 Tutorial / File Maker Pro 3.0 / Templates / FileMaker And Apple Events / Sample Applications / HyperCard Example / AE Example-Report Card (.txt) next >
FileMaker Pro Database  |  1996-06-13  |  52KB  |  407 lines

  1.  play makAll work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All 
  2. HBAM2016AUG95
  3. Pro 3.0
  4.  All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dullCopyright 1984-1996 Claris Corporation
  5.  and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. 
  6. HBAM3016AUG95@
  7. Pro 2.0F!
  8. Pro 3.0
  9. AUTUMN AVERAGE
  10. AUTUMN ENGLISH
  11. AUTUMN HISTORY
  12. AUTUMN MATH
  13. CHILD
  14. ENGLISH AVERAGE
  15. HISTORY AVERAGE
  16. MATH AVERAGE
  17. OVERALL AVERAGE
  18. PARENT
  19. PHONE NUMBER
  20. SPRING AVERAGE
  21. SPRING ENGLISH
  22. SPRING HISTORY
  23. SPRING MATH
  24. SUMMER AVERAGE
  25. SUMMER ENGLISH
  26. SUMMER HISTORY
  27. SUMMER MATH
  28. WINTER AVERAGE
  29. WINTER ENGLISH
  30. WINTER HISTORY
  31. WINTER MATH
  32. ChildB
  33. ParentB
  34. Phone NumberB
  35. Autumn MathB
  36. Winter MathB
  37. Spring MathB
  38. Summer MathB
  39. Autumn HistoryB
  40. Spring HistoryB
  41. Summer HistoryB
  42. Autumn EnglishB
  43. Sunday
  44. Monday
  45. Tuesday
  46.     Wednesday
  47. Thursday
  48. Friday
  49. Saturday
  50. January
  51. February
  52. March
  53. April
  54. August
  55.     September
  56. October
  57. November
  58. December
  59. 1st Quarter
  60. 2nd Quarter
  61. 3rd Quarter
  62. 4th Quarter
  63. 6/13/96
  64. Complete Report
  65. Basic Info
  66. Student Name
  67. Averages
  68. Intro
  69. Intro 2
  70. Intro 3
  71. Student Names
  72. Complete ReportB
  73. Yesfter
  74. Noarter
  75. Yesfter
  76. Noarter
  77. Yesfter
  78. Noarter
  79. Yesfter
  80. Noarter
  81. Winter EnglishB
  82. Spring EnglishB
  83. Summer EnglishB
  84. Math AverageB
  85. History AverageB
  86. English AverageB
  87. Autumn AverageB
  88. Winter AverageB
  89. Spring AverageB
  90. Summer AverageB
  91. Overall AverageB
  92. Basic InfoB
  93. Yesfter
  94. Noarter
  95. Yesfter
  96. Noarter
  97. Yesfter
  98. Noarter
  99. Phone NumberE
  100. ParentF
  101. Child
  102. Yesfter
  103. Noarter
  104. Yesfter
  105. Noarter
  106. Yesfter
  107. Noarter
  108. Yesfter
  109. Noarter
  110. Yesfter
  111. Noarter
  112. Yesfter
  113. Noarter
  114. Yesfter
  115. Noarter
  116. Yesfter
  117. Noarter
  118. Yesfter
  119. Noarter
  120. Yesfter
  121. Noarter
  122. Yesfter
  123. Noarter
  124. Yesfter
  125. Noarter
  126. Yesfter
  127. Noarter
  128. Yesfter
  129. Noarter
  130. Yesfter
  131. Noarter
  132. Yesfter
  133. Noarter
  134. Yesfter
  135. Noarter
  136. Yesfter
  137. Noarter
  138. Yesfter
  139. Noarter
  140. XcWhen using Excel, you should close the macro  file and export file before running the script again.Y
  141. Cross Tabs by TermZ
  142. Chart Term Averages[    Excel 4.0\    Averages:]
  143. English:^
  144. History:_
  145. Math:`
  146. Summera
  147. Averagesb
  148. Springc
  149. Winterd
  150. Autumne
  151. Phone Numberf
  152. Parentg
  153. Child
  154. Averages[    Excel 4.0\    Averages:]
  155. English:^
  156. History:_
  157. Math:`
  158. Summera
  159. Averagesb
  160. Springc
  161. Winterd
  162. Springe
  163. Phone Numberf
  164. Parentg
  165. Child
  166. Winter HistoryB
  167. Spring HistoryB
  168. Summer HistoryB
  169. Autumn EnglishB
  170. Student NameB
  171. Yesfter
  172. Noarter
  173. Child
  174. AveragesB
  175. Yesfter
  176. Noarter
  177. Yesfter
  178. Noarter
  179. IntroB
  180. Continue...
  181. This database has been created to demonstrate some of the Apple event capabilities of FileMaker Pro version 3.0.  The HyperCard stack 
  182. Report Card Browser
  183.  when used with this database, illustrates some of the interactions possible between  FileMaker Pro, Apple
  184. s HyperCard 2.2, and Microsoft Excel 4.0 applications. 
  185. This database includes scripts that:
  186.   Export data
  187.   Open the exported file in a spreadsheet (i.e.  Excel 4.0)
  188.   Create either a chart or cross-tab report
  189. It also include
  190. Yesfter
  191. Noarter
  192. Yesfter
  193. Noarter
  194. Yesfter
  195. Noarter
  196. Yesfter
  197. Noarter
  198. Yesfter
  199. Noarter
  200. Yesfter
  201. Noarter
  202. Yesfter
  203. Noarter
  204. o    Averages:p
  205. English:q
  206. History:r
  207. Math:s
  208. Summert
  209. Averagesu
  210. Springv
  211. Winterw
  212. Fallx
  213. Child
  214. Intro 2B
  215. Continue...
  216. The example used is a report card database for elementary school students.  It is a very simple database, with fields for grades, averages, the student
  217. s names, a parent
  218. s name, and a phone number.
  219. Clicking the Chart Term Averages or Cross Tabs by Term buttons will create a bar chart or Cross tab report in Excel 4.0.  The scripts that perform these actions are called 
  220. Excel Chart Term Avgs
  221. , and 
  222. Excel Cross tabs by Term
  223. .  Each of these scripts first performs the script called 
  224. Export Te
  225. s a script that can dial a phone by sending the appropriate Apple events to HyperCard.  
  226. We have tried to make each script as general as possible, so they can be used again in other applications besides the sample shown here.
  227. Note that in order to use Apple events, you must be running System 7.0 or greater.  Additionally, remember that Apple events requires that all 
  228. communicating
  229.  applications be running simultaneously.
  230. Z+FileMaker Pro Apple Events Example Database
  231. Intro 3B
  232. rm Averages
  233.  to automatically export data to a file called 
  234. Export Term
  235. .  These scripts will then open this file in  Excel (using an 
  236. Open Document
  237.  event), and execute the appropriate Excel Macro (using the 
  238. Do Script
  239.  event).  To see how to execute an Excel Macro, choose ScriptMaker from the Scripts menu, and double click the appropriate script.  For more information about Apple events, please see the 
  240. Apple Events Reference
  241.  database included with these examples.  
  242. C+FileMaker Pro Apple Events Example Database
  243. Student NamesB
  244. Yesfter
  245. Noarter
  246. Child
  247. Johnny SmithB
  248. Susan SmithC
  249. 555-6664D
  250. 77.5Q
  251. 77.5R
  252. 77.5S
  253. 71.6666666666667T
  254. 78.3333333333333V
  255. Nora PublicB
  256. John Q. PublicC
  257. 555-1475D
  258. 81.25R
  259. 83.75S
  260. 71.6666666666667T
  261. 78.3333333333333U
  262. 73.3333333333333V
  263. 83.3333333333333W
  264. 76.6666666666667
  265. Jeremy Davidsen
  266. To start using the Apple events examples, simply click the 
  267. Open Stacks
  268.  button above to launch HyperCard (if it is not already launched) and open the 
  269. Phone Dialer
  270.  stack and the 
  271. Report Card Browser
  272.  stack.  Then click the 
  273. Show Report Cards
  274.  button to start using this database as explained above.
  275. For more technical information about using these Apple event examples, please refer to the Stack info button in the 
  276. Report Card Browser
  277.  stack.  It is important to note that this documentatio
  278. en is written for people who are proficient with the HyperCard application and the HyperTalk language.  It is also important to note that this documentation should be used in conjunction with the 
  279. Apple Events Reference
  280.  database.  In that database FileMaker Pro
  281. s implementation of the Object Model and the FileMaker Pro containment hierarchy are described.
  282. Show Report Cards...C
  283. Stacks
  284. Report Card Browser
  285.  is a simple stack that relies on several AppleEvents to retrieve data from FileMaker Pro and send data to FileMaker Pro. The use of this stack should be straight forward to anyone familiar with HyperCard: connect to the database, and a list of students will appear (note that the list of students was retrieved from FileMaker). To view all the data for a student, just click the name. The stack will now show a card with all the grades for that student (again, this da
  286. ta has been retrieved from FileMaker). To modify a grade, click on the appropriate grade and type the new value.  In order to update this grade in this FileMaker database, click the 
  287. Send Data
  288.  button. If the data has been changed in FileMaker, you can update the stack by clicking the 
  289. Retrieve Data
  290.  button.
  291. To see the student list again, click the 
  292. Index
  293.  button. To add a new record to the FileMaker database, click the 
  294. New Record
  295.  button. You will then be prompted for information. After
  296. Cf all the information has been entered, click the 
  297. Add Record
  298.  button to update the FileMaker database.
  299. E+FileMaker Pro Apple Events Example Database
  300. Export Term Averages
  301. Excel Chart Term Avgs
  302. Excel Bar Chart Script
  303. aevtodoc
  304. Export term
  305. #gvS@g
  306. aevtodoc
  307. miscdosc
  308. -RUN("'Excel Bar Chart Script'!Record1",FALSE)
  309. aevtodoc
  310. aevtodoc
  311. FCmiscdosc
  312. -RUN("'Excel Bar Chart Script'!Record1",FALSE)
  313. Excel Cross tabs by Term
  314. Startup script
  315. Open HyperCard stacks
  316. aevtodoc
  317. Show report cards
  318. Excel Cross-tabs Script
  319. aevtodoc
  320. Export Term
  321. #gvS@g
  322. aevtodoc
  323. miscdosc
  324. -RUN("'Excel Cross-tabs Script'!Macro2",FALSE)
  325. aevtodoc
  326. aevtodoc
  327. FCmiscdosc
  328. -RUN("'Excel Cross-tabs Script'!Macro2",FALSE)
  329. Startup script
  330. Excel Chart Term Avgs
  331. Excel Cross tabs by Term
  332. Export Term Averages
  333. Show report cards
  334. Open HyperCard stacks
  335. FPTHA
  336. Export Term
  337. MSPCA
  338. NAMEA
  339. Export Term
  340. FPTHA
  341. Excel Bar Chart Script
  342. MSPCA
  343. NAMEA
  344. Excel Bar Chart Script
  345. FPTHA
  346. Export term
  347. MSPCA
  348. NAMEA
  349. Export term
  350. FPTHA
  351. Excel Cross-tabs Script
  352. MSPCA
  353. NAMEA
  354. Excel Cross-tabs Script
  355. ;RPTH
  356. 4NAME
  357. FPTHA;Rickenbacker:Applications:Franz:x40-SCM:Report Card Browser
  358. MSPCA
  359. NAMEA
  360. Report Card Browser
  361. RPTHA4::::::Applications:Franz:x40-SCM:Report Card Browser
  362. ffffff
  363. ffff33
  364. ff33ff
  365. ff3333
  366. 33ffff
  367. 33ff33
  368. 3333ff
  369. 333333
  370. wwwwww
  371. UUUUUU
  372. DDDDDD
  373. """"""
  374.     Helvetica
  375. Geneva
  376. Palatino
  377. Times
  378. Monaco
  379. &6f`9
  380. Walter DavidsenC
  381. 555-1515D
  382. 76.25R
  383. 81.25S
  384. 78.3333333333333T
  385. 78.3333333333333U
  386. 78.3333333333333V
  387. 81.6666666666667W
  388. 79.1666666666666
  389. Julie MasonB
  390. Stanley MasonC
  391. 555-7812D
  392. 91.25Q
  393. 83.75R
  394. 81.25S
  395. 83.3333333333333U
  396. 81.6666666666667V
  397. 86.6666666666667W
  398. 85.4166666666667
  399. A    Ian ScottB
  400. Sonia ScottC
  401. 555-9864D
  402. 72.5Q
  403. 73.75R
  404. 72.5S
  405. 81.6666666666667W
  406. 72.9166666666667
  407.